<?php
header("content-type:text/html;charset=utf-8");
$id=$_GET['hid'];
$job=$_GET['job'];
$company=$_GET['company'];
$place=$_GET['place'];
$money=$_GET['money'];
$dbh=new PDO('mysql:host=localhost;dbname=mhsw','root','root');
$sql="update company set job='$job',company='$company',place='$place',money='$money' where id='$id'";
$arr=$dbh->exec($sql);
if($arr)
{
    header('location:list.php');
}
else
{
    echo "修改失败";
}

?>